﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="AirtightnessViewbyPIDDT.aspx.cs" Inherits="ProductAirtightness_AirtightnessView_AirtightnessViewbyPIDDT"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <br />
            <div style="float: left; width: 80%;">
                <table style="width: 100%">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="客户名称："></asp:Label>
                            <asp:DropDownList ID="DropDownList1" runat="server" Height="20px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
                                AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="产品名称："></asp:Label>
                            <asp:DropDownList ID="DropDownList2" runat="server" Height="20px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="起始时间："></asp:Label>
                            <input type="text" runat="server" id="TextBox1" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                                ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="终止时间："></asp:Label>
                            <input type="text" runat="server" id="TextBox2" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                                ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div style="float: left; clear: right; height: 38px; width: 15%;">
        <asp:Button ID="Button1" runat="server" Text="查 询" OnClick="Button1_Click" />
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="float: left; clear: left; width: 100%">
                <br />
                <asp:Label ID="Label5" runat="server" Text="查询结果：" Width="162px"></asp:Label>
                <br />
                <br />
                <asp:GridView ID="GridView1" runat="server" CellPadding="3" DataKeyNames="IsPass"
                    GridLines="None" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="White" BorderStyle="Ridge" 
                    BorderWidth="2px" CellSpacing="1"
                    EmptyDataText="没有相关数据" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                    Width="100%" PageSize="20">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="ProductSN" DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}"
                            DataTextField="ProductSN" HeaderText="腔体序列号" NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx"
                            Text="ProductSN" />
                        <asp:BoundField DataField="RecordTime" HeaderText="录入时间" />
                        <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                        <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
                        <asp:BoundField DataField="TestValue" HeaderText="测试值" />
                        <asp:BoundField DataField="IsPass" HeaderText="是否合格" />
                    </Columns>
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
                <br />
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
